import requests

def get_jiguang_token():
    url = "http://api.yjyfdc.com/api/login"
    params = {
        "account": "1371448555",
        "password": "qw123456",
        "loginsource": "API",
    }
    rsp = requests.get(url, params=params)
    if rsp.status_code != 200:
        raise Exception(rsp.text)

    rspJson = rsp.json()
    token = rspJson["data"]["authtoken"]
    return token
